package org.jeecg.modules.demo.weixin.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 添加分账接收方表
 * @Author: jeecg-boot
 * @Date: 2023-11-21
 * @Version: V1.0
 */
@Data
@TableName("smt_profitsharing_receiver")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "smt_profitsharing_receiver对象", description = "添加分账接收方表")
public class SmtProfitsharingReceiver implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Integer id;
    /**
     * 名称
     */
    @Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private String merName;
    /**
     * 加密名称
     */
    @Excel(name = "加密名称", width = 15)
    @ApiModelProperty(value = "加密名称")
    private String aseName;
    /**
     * 子商户号
     */
    @Excel(name = "子商户号", width = 15)
    @ApiModelProperty(value = "子商户号")
    private String subMchid;
    /**
     * 分账接收方类型
     */
    @Excel(name = "分账接收方类型", width = 15)
    @ApiModelProperty(value = "分账接收方类型")
    private String type;
    /**
     * 分账接收方账号
     */
    @Excel(name = "分账接收方账号", width = 15)
    @ApiModelProperty(value = "分账接收方账号")
    private String account;
    /**
     * 与分账方的关系类型
     */
    @Excel(name = "与分账方的关系类型", width = 15)
    @ApiModelProperty(value = "与分账方的关系类型")
    private String relationType;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 更新时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * isDel
     */
    @Excel(name = "isDel", width = 15)
    @ApiModelProperty(value = "isDel")
    @TableLogic
    private Integer isDel;
    /**
     * 门店id
     */
    @Excel(name = "门店id", width = 15)
    @ApiModelProperty(value = "门店id")
    private String merchantId;

    //------------------------非数据库字段-----------------------
    /**
     * 分配比例
     */
    @TableField(exist = false)
    private BigDecimal ratio;
    /**
     * 描述
     */
    @TableField(exist = false)
    private String description;


    /**
     * 特约子商户
     */

    @TableField(exist = false)
    private String specialSubMerchants;

}
